package com.surprise.bweb.manager;

import java.util.Collection;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.surprise.db.dao.CityDAO;
import com.surprise.db.po.City;

/**
 * CityManager.java
 * @author nick
 * @since 2015年9月9日
 */
@Component
public class CityManager {
	@Autowired
	private CityDAO cityDAO;
	
	public List<City> findByIds(Collection<Long> ids) {
		return cityDAO.findByIds(ids);
	}
	
	public List<City> findAll() {
        return cityDAO.findAll();
    }
}
